const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8080,
    open: true, //配置自动启动浏览器
    proxy: {
      '/s-api': {
        target: 'http://localhost:3000/api',
        changeOrigin: true,
        ws: true,
        // pathRewrite: {
        //   '^/api': '/api',
        // },
      },
    },
  }
})